/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bm.template;

import com.bm.processor.SMSFAL;
import com.bm.processor.SMSKIT;
import com.bm.processor.SMSOS;
import com.bm.template.IProcessor;
import com.google.gson.JsonObject;

/**
 *
 * @author ssm
 */
public class RequestAdapter {
    public static IProcessor getProcessor(String id_produk, JsonObject data){
        if (id_produk.equalsIgnoreCase("SMSKIT")){
            return new SMSKIT(data);
        } else if (id_produk.equalsIgnoreCase("SMSFAL")){
            return new SMSFAL(data);
        } else if (id_produk.equalsIgnoreCase("SMSOS")){
            return new SMSOS(data);
        } 
        return null;
    }
}
